﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cylin
{
    public enum InDefine0
    {
        AlignCyl = 0,
    }

    public class Input : IUpdate
    {
        public ushort[] In;
        public Input(int Num)
        {
            In = new ushort[Num];
        }

        public bool InAlingCyl { get{return CheckBit(0, (int)InDefine0.AlignCyl);}  }

        bool CheckBit(int InNum, int Loc)
        {
            if((In[InNum] & (0x1<<Loc)) != 0)
                return true;
            else
               return false;
         }

        public void Update()
        {
             Console.WriteLine("Update");
        }

        
    }
}
